home *** CD-ROM | disk | FTP | other *** search
- Path: macshack.com!not-for-mail
- From: mikemc@macshack.com (Mike McCammant)
- Newsgroups: comp.lang.c++
- Subject: Re: Serail Port Programming
- Date: 8 Jan 1996 14:25:30 -0500
- Organization: Mac's Shack - The "Whole Family" Internet Solution c/o macshack@randomc.com
- Message-ID: <4crr3a$eto@macshack.com>
- References: <4cgjij$lmk@newsbf02.news.aol.com> <4cpg6v$ao@newsserver.trl.OZ.AU>
- Reply-To: mikemc@macshack.com
- NNTP-Posting-Host: localhost.macshack.com
-
- In article <4cpg6v$ao@newsserver.trl.OZ.AU>,
- Trevor Hand <t.hand@trl.oz.au> wrote:
- >In article <4cgjij$lmk@newsbf02.news.aol.com>,
- > prestridge@aol.com (Prestridge) wrote:
- >>I am needing a good way of reading from an RS-232 serail port. I am using
-
- >I am currently writing a class to test/manipulate the serial port. At the
- >momment though I am having some trouble getting a dialog box working - still
- >haven't worked out what to use when "this" doesn't work! - once I solve this
- >(no pun intended) it should be pretty well fixed. I found a lot of
- >information in a book titled "Using Turbo C++ 4.5" by Que, it has a chapter
- >titled "Device I/O" and has a number of examples showing, quite clearly too,
- >how to talk to the serial port. Most of the functions used are in the Windows
- >API, the book "Visual Basic Programmer's Guide to the Windows API" by Appleman
- >is considered to be one of the best on the API subject, pretty easy to convert
- >from VB to C. My code does not read from the port, just sets up the settings
- >and writes strings out. If you would like some of my code that may be
- >relevant to help you, let me know and I will send you some, probably 5 or 6
- >pages though. Reading from the port is pretty easy.
-
-
- Actually, for Windows, you have done the easy part. ;)
-
- Under Windows, the hard part is getting the data from the port
- in a reliable manner. I spent weeks debugging my classes to get the
- message handling etc working good enough for any decent communication.
-
- I will be posting a notice here in a few days announcing the release of
- a communications object set for WIN16/VC++ v1.5x. I have a few
- things to tweek.
-
-
- --
- Mike - mikemc@macshack.com - Home of the JEO-Counter, graphic WWW counter
- /---------------------------------------\ My opinions belong to me,
- | Visit us at http://www.macshack.com | myself and I, not my employer,
- \......................................./ the government or my wife...:)
-